//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
//-----------------------------------------------------------------------------
// ARP.H
//
//-----------------------------------------------------------------------------
#ifndef NET_ARP_H
#define NET_ARP_H

// Allow up to 10 entries in ARP cache
#define CACHESIZE       10

// ARP cache entry expiration time = 20 minutes
#define CACHETIME       20      // 60 second intervals

// Allow 2 seconds to receive an ARP reply
#define ARP_TIMEOUT     4       // 0.5 second intervals

void init_arp(void);
UNS_8  *arp_resolve(UNS_32 dest_ipaddr);
void arp_rcve(UNS_8  *inbuf);
void age_arp_cache(void);
void arp_retransmit(void);

#endif //NET_ARP_H
